﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Item.aspx.cs" Inherits="Item" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:Repeater ID="ItemDetail" runat="server" OnItemCommand="ItemDetail_ItemCommand">
    <ItemTemplate>
    <table align="center" style="width: 90%;">
    <tr>
            <td style="color: #FF0000; text-align: center; font-size: large; height: 17px; background-color: #FFFF99;" 
                colspan="2">
                Chi tiết sản phẩm </td></td>
            </tr>
        <tr>
            <td colspan="2" style="text-align: center; height: 20px">
                <img alt='<%# Eval("name") %>' title='<%# Eval("name") %>' src='images/items/<%# Eval("image") %>' width="152" height="209" style="margin-top:10px; margin-left:10px" /></td>
        </tr>
        <tr>
            <td style="color: #FF0000; text-align: center; font-size: large; height: 17px; background-color: #FFFF99;" 
                colspan="2">
                 <%# Eval("name") %></td></td>
            </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left; height: 17px;">
            <td style="color: #0000CC; height: 17px;">
               
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Hãng sản xuất</b></td>
            <td style="color: #0000CC">
                <%# Eval("name_cat") %></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Giá</b></td>
            <td style="color: #0000CC">
                <%# Eval("price", "{0:0,0}") %> VNĐ</td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Display</b></td>
            <td style="color: #0000CC">
                <%# Eval("display") %></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Camera</b></td>
            <td style="color: #0000CC">
                <%# Eval("camera") %></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Configuration</b></td>
            <td style="color: #0000CC">
                <%# Eval("configuration")%></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Kết nối</b></td>
            <td style="color: #0000CC">
                <%# Eval("connectivity")%></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Dữ liệu</b></td>
            <td style="color: #0000CC">
                <%# Eval("datatranfers")%></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left; height: 20px;">
                <b>Cấu hình chung</b></td>
            <td style="color: #0000CC; height: 20px;">
                <%# Eval("generalfeatures")%></td>
        </tr>
        <tr>
            <td style="color: #000066; width: 228px; text-align: left;">
                <b>Khuyến mãi</b></td>
            <td style="color: #0000CC">
                Tặng miếng dán màn hình, thẻ nhớ 1Gb</td>
        </tr>
        <tr>
            <td style="height: 20px; width: 228px">
            </td>
            <td style="height: 20px">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 228px">
                &nbsp;</td>
            <td>
            <a href="Default.aspx"><input id="Button1" style="height: 38px" type="button" 
                    value="Về trang chủ" /></a>
               &nbsp;
                <asp:Button  ID="BtnAddItem" CommandName="addItem" 
                    CommandArgument='<%# Eval("id") %>' runat="server" Height="38px" 
                    Text="Thêm giỏ hàng" />
                
        </tr>
    </table>
    </ItemTemplate>
    </asp:Repeater>
    
</asp:Content>

